<template>
  <div>
    <el-table v-loading="loading" :data="infoList" border header-cell-class-name="bg-F4F8FF">
      <el-table-column type="index" width="55" align="center"  label="序号"/>
      <el-table-column label="人员姓名" align="center" prop="personnelName"/>
      <el-table-column label="证件到期状态" align="center" prop="holdStatus"/>
      <el-table-column label="到期时间" align="center" prop="deadlineTime" />
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="550px">
        <template slot-scope="scope">
          <el-button
            size="mini"
            type="text"
            @click="handleInfo(scope.row)"
          >更新证件</el-button>
        </template>
      </el-table-column>
    </el-table>
    <pagination
      v-show="total>0"
      :total="total"
      :page.sync="queryParams.pageNum"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />
  </div>
</template>

<script>
import { getPersonnelDbHealthyList } from '@/api/zhangping/publicPlace'
export default {
  name: 'ryjkTable',
  data() {
    return {
      // 遮罩层
      loading: true,
      // 总条数
      total: 0,
      // 列表
      infoList: [
        {
          A:"张三",
          B:"临期",
          C:"2024-10-10",
        },
        {
          A:"李四",
          B:"到期",
          C:"2024-01-10",
        },
        {
          A:"王五",
          B:"到期",
          C:"2024-01-10",
        },
        {
          A:"马六",
          B:"到期",
          C:"2024-01-10",
        },

      ],
      // 查询参数
      queryParams: {
        pageNum:1,
        pageSize:10,
      },
    };
  },

  created() {
    this.loading = false
    this.getList();
    // this.getCategoryList()
  },

  methods :{
    getList(){
      getPersonnelDbHealthyList({
        ...this.queryParams,
        creditCode:'229397350881813143'
      }).then(res=>{
        this.total = res.total
        this.infoList = res.rows
      })
    },
    handleInfo(row) {
    },
  }

}
</script>

<style>

</style>
